from math import *
s = input().split()
a = float(s[0])
b = float(s[1])
ans = sqrt(a * b) - (a + b) / 2
print("%.2lf"%ans)